//
//  BConversionSelectTickerCurrencyCell.m
//  GSBlockChain
//
//  Created by guoshikeji_a on 2019/1/8.
//  Copyright © 2019 guoshikeji. All rights reserved.
//

#import "BConversionSelectTickerCurrencyCell.h"

#import "BCConversionDataTickerModel.h"

@interface BConversionSelectTickerCurrencyCell ()

@property (nonatomic, strong) QMUILabel *signLabel;

@end

@implementation BConversionSelectTickerCurrencyCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setupSubviews];
    }
    return self;
}

- (void)setupSubviews {
    self.signLabel = [QMUILabel new];
    self.signLabel.textColor = [UIColor qmui_colorWithHexString:@"#666666"];
    self.signLabel.font = [UIFont systemFontOfSize:16 weight:UIFontWeightMedium];
    [self.contentView addSubview:self.signLabel];
    [self.signLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.contentView).offset(15.0);
        make.centerY.mas_equalTo(self);
        make.right.mas_equalTo(self.contentView).offset(-15.0);
    }];
    //
    [self addSubview:self.separatorLine];
    [self.separatorLine mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self).offset(10.0);
        make.right.mas_equalTo(self).offset(-10.0);
        make.bottom.mas_equalTo(self);
        make.height.mas_equalTo(1.0);
    }];
}


- (void)setModel:(BCConversionDataTickerModel *)model {
    _model = model;
    //
    self.signLabel.text = model.sign;
}

@end
